package com.kehutong.charge.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.kehutong.charge.util.enums.ChargeStatusEnum;
import com.kehutong.common.entity.DataEntity;
import com.kehutong.common.util.BigDecimalUtils;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @program: kht
 * @description: ChargeReFundManage导出实体
 * @author: jian Ye
 * @create: 2021/8/9
 **/
@ColumnWidth(15)
public class ChargeReFundManageExcelVO {

    @ColumnWidth(25)
    @ExcelProperty(value="退款订单号")
    private String serviceNo;

    @ColumnWidth(25)
    @ExcelProperty(value="关联订单")
    private String orderNo;
    @ExcelProperty(value="退款用户")
    private String userName;
    @ExcelProperty(value="退款金额")
    private String refundAmount;

    @ExcelIgnore
    private ChargeStatusEnum applyStatus;
    @ExcelProperty(value="退款状态")
    private String applyState;

    @ColumnWidth(25)
    @ExcelProperty(value="退款时间")
    private Timestamp applyTime;



    public String getRefundAmount() {
        return refundAmount;
    }

    /**特殊处理*/
    public void setRefundAmount(String refundAmount) {
        this.refundAmount = BigDecimalUtils.parse(refundAmount);
    }

    public String getServiceNo() {
        return serviceNo;
    }

    public void setServiceNo(String serviceNo) {
        this.serviceNo = serviceNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public ChargeStatusEnum getApplyStatus() {
        return applyStatus;
    }

    public void setApplyStatus(ChargeStatusEnum applyStatus) {
        this.applyStatus = applyStatus;
    }

    public String getApplyState() {
        return applyStatus.getDesc();
    }


    public Timestamp getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Timestamp applyTime) {
        this.applyTime = applyTime;
    }
}
